package com.twxm.breed.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.JoinColumn;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "wechatinfo")
public class LoginInfo {
    @IsKey
    @TableId
    @Column(comment = "微信给的固定id")
    private String openId;//扫码登录

    @Column(name = "userid",comment = "用户id",type = MySqlTypeConstant.VARCHAR, length = 40)
    @IsNotNull
    private User user;//账号登录使用

    @Column(comment = "登录密码")
    @IsNotNull
    private String password;

    @Column(comment = "权限")
   private int flag;


}
